<template>
  <div>
    <input type="file" @change="up" />
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    up(ev) {
      var blob = ev.target.files[0];
      heic2any({
        blob: blob,
        toType: "image/jpg"
      })
        .then(function(resultBlob) {
          console.log(resultBlob, blob.name + ".jpg");

          let files = new window.File([resultBlob], '123')
          console.log(files)
        })
        .catch(function(x) {
          console.log(x);
        });
    }
  }
};
</script>